package nancal.mp.db.mongo.table

import java.io.*
import nbcp.base.db.*
import nbcp.base.comm.*
import nbcp.base.extend.*
import nbcp.base.enums.*
import nbcp.base.utils.*
import nbcp.myoql.db.*
import nbcp.myoql.db.comm.*
import nbcp.myoql.db.enums.*
import nbcp.myoql.db.mongo.*
import nbcp.myoql.db.mongo.base.*
import nbcp.myoql.db.mongo.component.*
import org.slf4j.LoggerFactory
import org.springframework.stereotype.*



class ReceiveAddressDataInfoMeta(private val parentPropertyName: String): MongoColumnName() {
    constructor(value: MongoColumnName) : this(value.toString()) {}
    val id = mongoColumnJoin(this.parentPropertyName, "_id")
    val alias = mongoColumnJoin(this.parentPropertyName, "alias")
    val userName = mongoColumnJoin(this.parentPropertyName, "userName")
    val city = CityCodeNameMeta(mongoColumnJoin(this.parentPropertyName, "city"))
    val address = mongoColumnJoin(this.parentPropertyName, "address")
    val mobile = mongoColumnJoin(this.parentPropertyName, "mobile")
    val email = mongoColumnJoin(this.parentPropertyName, "email")
    val zipcode = mongoColumnJoin(this.parentPropertyName, "zipcode")
    val longitude = mongoColumnJoin(this.parentPropertyName, "longitude")
    val latitude = mongoColumnJoin(this.parentPropertyName, "latitude")
    val default = mongoColumnJoin(this.parentPropertyName, "default")
    val createAt = mongoColumnJoin(this.parentPropertyName, "createAt")
    override fun toString(): String {
        return mongoColumnJoin(this.parentPropertyName).toString()
    }
}

